import request from "@/utils/request.js";

// 订单列表
// export const orderList=(data)=>{
// 	return request(`/order/list?size=${data.size}&current=${data.current}${data.orderId ? '&orderId=' + data.orderId : ''}${data.orderType ? '&orderType=' + data.orderType : ''}${data.categoryId ? '&categoryId=' + data.categoryId : ''}`)
// }

// 订单查询
export const orderList=(data)=>{
	return request(`/order/list?size=${data.size}&current=${data.current}${data.orderId ? '&orderId=' + data.orderId : ''}${data.orderType ? '&orderType=' + data.orderType : ''}${data.categoryId ? '&categoryId=' + data.categoryId : ''}${data.goodsId ? '&goodsId=' + data.goodsId : ''}`)
}
//订单中商品查询
export const orderGoods=(data)=>{
	return request(`/goods/all`)
}

//订单详情
export const orderDetail=(data)=>{
	return request(`/order/${data}`)
}